from django.db import models

# Create your models here.

class NewsModel(models.Model):
    tital = models.CharField(max_length=30)
    content = models.TextField()
    author = models.CharField(max_length=30)
    def __str__(self):
        return self.tital
    class Meta():
        db_table = 'news'



